#!/bin/bash

toolchain="riscv64-unknown-linux-gnu-"
compile_flags="-std=c++11 -O3 -Wall -static"
outdir="run"
${toolchain}g++ ${compile_flags} src/bc.cc -o ${outdir}/bc
${toolchain}g++ ${compile_flags} src/bfs.cc -o ${outdir}/bfs
${toolchain}g++ ${compile_flags} src/cc.cc -o ${outdir}/cc
${toolchain}g++ ${compile_flags} src/pr.cc -o ${outdir}/pr
${toolchain}g++ ${compile_flags} src/sssp.cc -o ${outdir}/sssp
${toolchain}g++ ${compile_flags} src/tc.cc -o ${outdir}/tc
g++ -std=c++11 -O3 -Wall -static src/converter.cc -o converter
